3.66 \(\int (3-4 \sin (c+d x))^n \, dx\)

Optimal. Leaf size=69 \[ \frac {\sqrt {2} 7^n \cos (c+d x) F_1\left (\frac {1}{2};-n,\frac {1}{2};\frac {3}{2};\frac {4}{7} (\sin (c+d x)+1),\frac {1}{2} (\sin (c+d x)+1)\right )}{d \sqrt {1-\sin (c+d x)}} \]

[Out]

7^n*AppellF1(1/2,1/2,-n,3/2,1/2+1/2*sin(d*x+c),4/7+4/7*sin(d*x+c))*cos(d*x+c)*2^(1/2)/d/(1-sin(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2665, 138} \[ \frac {\sqrt {2} 7^n \cos (c+d x) F_1\left (\frac {1}{2};-n,\frac {1}{2};\frac {3}{2};\frac {4}{7} (\sin (c+d x)+1),\frac {1}{2} (\sin (c+d x)+1)\right )}{d \sqrt {1-\sin (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[(3 - 4*Sin[c + d*x])^n,x]

[Out]

(Sqrt[2]*7^n*AppellF1[1/2, -n, 1/2, 3/2, (4*(1 + Sin[c + d*x]))/7, (1 + Sin[c + d*x])/2]*Cos[c + d*x])/(d*Sqrt
[1 - Sin[c + d*x]])

Rule 138

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Simp[((a + b*x)
^(m + 1)*AppellF1[m + 1, -n, -p, m + 2, -((d*(a + b*x))/(b*c - a*d)), -((f*(a + b*x))/(b*e - a*f))])/(b*(m + 1
)*(b/(b*c - a*d))^n*(b/(b*e - a*f))^p), x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] &&  !IntegerQ[m] &&  !Inte
gerQ[n] &&  !IntegerQ[p] && GtQ[b/(b*c - a*d), 0] && GtQ[b/(b*e - a*f), 0] &&  !(GtQ[d/(d*a - c*b), 0] && GtQ[
d/(d*e - c*f), 0] && SimplerQ[c + d*x, a + b*x]) &&  !(GtQ[f/(f*a - e*b), 0] && GtQ[f/(f*c - e*d), 0] && Simpl
erQ[e + f*x, a + b*x])

Rule 2665

Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Dist[Cos[c + d*x]/(d*Sqrt[1 + Sin[c + d*x]]*Sqrt
[1 - Sin[c + d*x]]), Subst[Int[(a + b*x)^n/(Sqrt[1 + x]*Sqrt[1 - x]), x], x, Sin[c + d*x]], x] /; FreeQ[{a, b,
 c, d, n}, x] && NeQ[a^2 - b^2, 0] &&  !IntegerQ[2*n]

Rubi steps

\begin {align*} \int (3-4 \sin (c+d x))^n \, dx &=\frac {\cos (c+d x) \operatorname {Subst}\left (\int \frac {(3-4 x)^n}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sin (c+d x)\right )}{d \sqrt {1-\sin (c+d x)} \sqrt {1+\sin (c+d x)}}\\ &=\frac {\sqrt {2} 7^n F_1\left (\frac {1}{2};-n,\frac {1}{2};\frac {3}{2};\frac {4}{7} (1+\sin (c+d x)),\frac {1}{2} (1+\sin (c+d x))\right ) \cos (c+d x)}{d \sqrt {1-\sin (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.17, size = 84, normalized size = 1.22 \[ -\frac {\sqrt {\cos ^2(c+d x)} \sec (c+d x) (3-4 \sin (c+d x))^{n+1} F_1\left (n+1;\frac {1}{2},\frac {1}{2};n+2;\frac {1}{7} (3-4 \sin (c+d x)),4 \sin (c+d x)-3\right )}{\sqrt {7} d (n+1)} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(3 - 4*Sin[c + d*x])^n,x]

[Out]

-((AppellF1[1 + n, 1/2, 1/2, 2 + n, (3 - 4*Sin[c + d*x])/7, -3 + 4*Sin[c + d*x]]*Sqrt[Cos[c + d*x]^2]*Sec[c +
d*x]*(3 - 4*Sin[c + d*x])^(1 + n))/(Sqrt[7]*d*(1 + n)))

________________________________________________________________________________________

fricas [F]  time = 0.79, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (-4 \, \sin \left (d x + c\right ) + 3\right )}^{n}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-4*sin(d*x+c))^n,x, algorithm="fricas")

[Out]

integral((-4*sin(d*x + c) + 3)^n, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (-4 \, \sin \left (d x + c\right ) + 3\right )}^{n}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-4*sin(d*x+c))^n,x, algorithm="giac")

[Out]

integrate((-4*sin(d*x + c) + 3)^n, x)

________________________________________________________________________________________

maple [F]  time = 0.67, size = 0, normalized size = 0.00 \[ \int \left (3-4 \sin \left (d x +c \right )\right )^{n}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3-4*sin(d*x+c))^n,x)

[Out]

int((3-4*sin(d*x+c))^n,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (-4 \, \sin \left (d x + c\right ) + 3\right )}^{n}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-4*sin(d*x+c))^n,x, algorithm="maxima")

[Out]

integrate((-4*sin(d*x + c) + 3)^n, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (3-4\,\sin \left (c+d\,x\right )\right )}^n \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3 - 4*sin(c + d*x))^n,x)

[Out]

int((3 - 4*sin(c + d*x))^n, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (3 - 4 \sin {\left (c + d x \right )}\right )^{n}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-4*sin(d*x+c))**n,x)

[Out]

Integral((3 - 4*sin(c + d*x))**n, x)

________________________________________________________________________________________